package com.project.yuepai.dao;

import com.project.yuepai.dto.FeedbackDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SuggestMapper {

    List<FeedbackDto> findAllFeedback(@Param("nickName") String nickName,@Param("userRole") Integer userRole,@Param("userPhone") String userPhone);

    int deleteFeedback(Integer feedbackId);

    //删除关联表中的用户反馈数据
    int deleteFeedbackInRelation(Integer feedbackId);

}
